package com.wx.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wx.mapper.QRCodeMapper;
import com.wx.pojo.QRCode;
import com.wx.service.QRCodeService;
/**
 * 二维码
 */
@Service
public class QRCodeServiceImpl implements QRCodeService {
	
	@Autowired
	private QRCodeMapper qRCodeMapper;
	
	@Override
	public void addQRCode(QRCode qrCode) {
		qRCodeMapper.addQRCode(qrCode);
		
	}
	/**
	 * 查找二维码通过用户id
	 */
	@Override
	public QRCode findQRCodeByUserId(String userId) {
		System.out.println("qrService: "+userId);
		return qRCodeMapper.findQRCodeByUserId(userId);
	}

}
